<?php
/**
 * Created by Wang.
 * User: nango
 * Date: 2016-06-02
 * Time: 16:22
 * 核心类库
 */
namespace Wang\Core;
use Wang\Database;
class Wang
{
    /**
     * 框架开始
     */
    static function start(){
        require_once(__ROOT__ . '/Wang/Core/Loader.class.php');
        require_once(__ROOT__.'/Wang/Common/functions.php');
        require_once(__ROOT__.'/Addons/smarty/Autoloader.php');

        //自动加载类
        spl_autoload_register("Wang\\Core\\Loader::autoload");
        \Smarty_Autoloader::register();

        //URL解析
        ParseUrl::PUrl();

    }

}

